#ifndef __UPIN_H__
#define __UPIN_H__

#define SPI1_IO   GPIOB
#define SPI1_SCK  GPIO_PIN_13
#define SPI1_MISO GPIO_PIN_14
#define SPI1_MOSI GPIO_PIN_15
#define SPI1_PINS SPI1_SCK | SPI1_MISO | SPI1_MOSI


#define RC522_CS_IO  GPIOB
#define RC522_CS_PIN GPIO_PIN_12
#define RC522_RESET_PIN                GPIO_PIN_8          /* PB8 */    //   RESET
#if defined SEGLCD_V2206 || ZSY03_V2206
	#define RC522_RESET_IO          GPIOB           /* GPIOB */
#else
	#define RC522_RESET_IO          GPIOA           /* GPIOA */
#endif




#endif